package edu.whu;

import edu.whu.Zengqm.edu.whu.Zengqm;
import edu.whu.Zengqm.edu.whu.Main;
import jdk.nashorn.internal.runtime.linker.Bootstrap;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

import java.lang.reflect.Method;


public class test {
    @Test
    public void getClassFromPropertiesTest(){
        Assertions.assertEquals(Zengqm.class,Main.getClassFromProperties());
    }

    @Test
    public void getAnnotatedMethodsTest() throws NoSuchMethodException{
        Method[] annotatedMethods = new Method[] {
                Zengqm.class.getMethod("init")
        };
        Assertions.assertArrayEquals(annotatedMethods, Main.getAnnotatedMethods(Zengqm.class));
    }
}
